package itheima;

public class Demo4 {
    public static void main(String[] args) {
        int[] arr = {12, 45, 98, 73, 60};
         int max= arr[0];
        for (int i = 0; i < arr.length; i++) {
            if(max<arr[i]) {
                max = arr[i];
            }
        }
        System.out.println("最大值为:"+ max);
    }
}
